package com.google.code.irouter.portal.client.dashboard.main.center.managers.relation.browser.editor.detail;

import com.google.code.irouter.portal.client.AppConstants;
import com.google.code.irouter.portal.client.dashboard.main.center.managers.relation.browser.editor.detail.command.Cancel;
import com.google.code.irouter.portal.client.dashboard.main.center.managers.relation.browser.editor.detail.command.Name;
import com.google.code.irouter.portal.client.dashboard.main.center.managers.relation.browser.editor.detail.command.Save;
import com.google.gwt.core.client.GWT;
import com.gwtext.client.widgets.Toolbar;
import com.gwtext.client.widgets.ToolbarTextItem;

public final class Command extends Toolbar {

	private static final AppConstants CONSTANTS = GWT.create(AppConstants.class);
	
	public Command() {
		super();
		this.setId(Command.class.getName());

		this.addItem(
				new ToolbarTextItem(
						"<b>" + 
						CONSTANTS.com_google_code_irouter_portal_client_dashboard_main_center_managers_relation_browser_editor_detail_command_title() + 
						"</b>"
				)
		);
		this.addSeparator();
		this.addField(new Name());		
		this.addFill();

		this.addButton(new Save());
		this.addButton(new Cancel());
	}
}
